<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
{template index/lottery_view_header_credit}

	<style type="text/css">
		.lottery_result div:nth-of-type(2) {
			height: 35px;
			line-height: 35px;
			vertical-align: middle;
		}

		.gamePlay .page-ico {
			position: absolute;
			right: 0;
			top: 0;
			width: 34px;
			display: block;
			background: none;
			height: auto;
			margin: auto;
		}
	</style>
	
	<div class="ui-main-box fleft w100">
		<div class="ui-tab-ball-box clear">
			<ul class="fleft w100" data-bind="foreach:navList">
				<li class="fleft" data-bind="css:($parent.currentNavId()).id===id?'curr':''"><a href="javascript:;" data-bind="text:name,click:$parent.navClick"></a></li>
			</ul>
			{if $data['lotteryid']}
				<div class="gamePlay">
					<a href="{U('/lottery/view',['id'=>$data['lotteryid']])}" title="官方玩法"></a>
					<a href="{U('/lottery/view',['id'=>$data['lotteryid']])}" title="官方玩法" class="page-ico">
						<img src="static/images/new-ico.gif" />
					</a>
				</div>
			{/if}
		</div>
		<div class="ui-left-box fleft" id="mainBox">
			<div class="ui-shortcut-box clear">
				<div class="fleft" style="height:35px;">
					<div class="buyBonus" id="SLIPPER">
						<div class="BonusPercen" data-bind="text:utils.toFixed(kickback(),1)+'%'">8</div>
						<a href="javascript:;" class="minus" data-bind="click:plus"></a>
						<div class="ranger">
							<div class="ui-widget">
								<span class="ui-handle" style="left: 0;"></span>
							</div>
						</div>
						<a href="javascript:;" class="plus" data-bind="click:minus"></a>
					</div>
				</div>
				<div class="fright">
					<a href="javascript:;" title="一般" class="fleft ui-general-btn" data-bind="click:$root.generalClick,css:$root.selectType()?'yes':''">一般</a>
					<a href="javascript:;" title="快捷" class="fleft ui-short-btn" data-bind="click:$root.fastQuick,css:$root.selectType()?'':'yes'">快捷</a>
					<a href="javascript:;" title="快选金额" class="fleft ui-fast-select-btn" data-bind="click:$root.customSelectAmountEvent">快选金额</a>
				</div>
			</div>
			<div id="game-box" class="clear ui-content-box pr game-{$data['id']} game-{$data['ptid']}" data-bind="component:$root.fastRender"></div>
			
			<div class="waybill-wrap" data-bind="visible:!waybillHide()">
				<div class="clear waybill-tab waybill-tab-{$data['id']}">
					<dl data-bind="foreach:waybillSub2">
						<dt data-bind="if:$index()===0,visible:$index()===0">
							<select data-bind="options:$parent.waybillSub1,optionsText:'name',value:$parent.waybillSelect1"></select>
						</dt>
						<dd><a href="javascript:;" data-bind="text:name,click:$parent.waybillChecked.bind($data,$index()),css:$parent.waybillSelect2()===(type+$data.site)?'active':''">&nbsp;</a></dd>
					</dl>
				</div>
				<div class="waybill-main">
					<div class="w-item clear" id="WAYBILL-BODY"></div>
				</div>
			</div>
		</div>
		<div class="ui-right-box fright pr">
			<div class="ui-shadow-box fleft">
				<a href="javascript:;" class="select out-btn" data-bind="click:omissionAndoutCode" data-id="out">出码排行</a>
				<a href="javascript:;" class="omi-btn" data-bind="click:omissionAndoutCode" data-id="omi">遗漏排行</a>
			</div>
			<div class="ui-out-omission-con-box">
				<div class="fl w100">
					<label class="db fl ui-min-tit-box tc" id="label_tab">次数：</label>
					<div class="db fl tc pr ui-omi-select-box">
						<label class="db ui-show-select-box" data-oid="showOmiOut" data-bind="click:selectOption,attr:{'data-id':$root.showOmiOut().partialName},text:$root.showOmiOut().name">--</label>
						<ul class="pa ui-slide-box" id="slide_con" style="display:none;" data-bind="foreach:omiAndOutList">
							<li data-bind="click:$parent.dropDownLIClick.bind($parent,$data),attr:{'data-oid':partialName},text:name"></li>
						</ul>
					</div>
				</div>
				<ul class="ui-wer-box fl w100" style="color:red;" data-bind="css:(rankData().length === 0)?'':'dn'">
					<li class="tc" style="height:50px;line-height:50px;">暂无排名数据</li>
				</ul>
				<ul class="ui-wer-box fl w100" data-bind="foreach:rankData,css:(rankData().length === 0)?'dn':''">
					<li><label class="db ui-one-box" data-bind="html:name"></label><label class="db ui-two-box" data-bind="text:Count+'期'"></label></li>
				</ul>
			</div>
		</div>
	</div>
	
	<script type="text/html" id="tpl_general">
		<form data-bind="submit: $root.buildOrders.bind($data,$root),selectAmount:$root.quickAmountArr">
			<div class="main_txt zm16_txt w900">
				<div class="txt_section clear_fix">
					<!--ko if:template.isTop-->
					<!--ko foreach:template.tmp-->
					<div data-bind="template:{name:$data,data:$parent.list()[$index()+1]}"></div>
					<!--/ko-->
					<!--/ko-->
					<div class="s1_nav clear_fix">
						<!--ko if:list().length>0-->
						<ul class="clear" data-bind="foreach:{data:list()[0],as:'item'},css:$root.selectType()?'':'fast_slct'">
							<li data-bind="css:$parent.template.comW">
								<div class="zm16_nav" data-bind="css:item.title==''?'dn':'',text:item.title"></div>
								<div class="clear ui-ball-span-box">
									<div class="clear">
										<span class="border_001" data-bind="css:$parents[1].selectType()?'':'w49'">号码</span>
										<span class="border_002" data-bind="css:$parents[1].selectType()?'':'w49'">赔率</span>
										<span class="border_003" data-bind="css:$parents[1].selectType()?'':'dn'">金额</span><i></i>
									</div>
								</div>
								<div data-bind="foreach:{data:item.list,as:'index'}">
									<div class="bd clear" data-bind="click:$root.getFastItem">
										<span class="ball" data-bind="html:N, css:(/^[0-9]+$/.test(N))?'ball_com ball_'+N:(/[^\'\']/.test(N)?'':'dn'),style:{width:$root.selectType()?'':'50%'},attr:{'title':(/:+/.test($data.kname))?$data.kname:$data.kname+'：'+N}"></span>
										<span class="odds" data-bind="text:$root.status()?index['odd']():'封盘', css:/[^\'\']/.test(N) ? ($root.isFP(odd()) ? 'odds-close-text' : ($root.selectType() ? '' : 'w49')) : 'dn'"></span>
										<span class="amount_pane" data-bind="css:$root.selectType()?(/[^\'\']/.test(N)?'':'dn'):'dn'">
											<input type="text" class="amount" data-bind="textinput:amount, enable:$root.status, attr:{'oid':$root.status}" maxlength="9" />
										</span>
									</div>
								</div>
							</li>
						</ul>
						<!--/ko-->
					</div>
					<!--ko if:!template.isTop-->
					<!--ko foreach:template.tmp-->
					<div data-bind="template:{name:$data,data:$parent.list()[$index()+1]}"></div>
					<!--/ko-->
					<!--/ko-->
				</div>
				<div class="btn-wrap">
					<input type="text" class="amount" data-bind="enable:$root.status,css:$root.selectType()?'dn':'',value:$root.fastAmount,textInput:$root.fastAmount" maxlength="9">
					<input type="submit" class="btn btn-green" value="" title="确认" />
					<input type="reset" class="btn" value="" title="取消" data-bind="click:$root.reset.bind($data,$root)">
				</div>
			</div>
		</form>
	</script>

	<script type="text/html" id="tpl_longhu">
		<form data-bind="submit: $root.buildOrders.bind($data,$root), selectAmount:$root.quickAmountArr">
			<!--ko if:list().length>0-->
			<div class="toradora toradora_bar clear" data-bind="foreach:{data:list()[0],as:'longhu'},attr:{'oid':list()[0].length},css:($root.selectType())?'':'fast_slct'">
				<ul class="clear_fix tc fl" data-bind="css:$data.offset+'-'+ $index(),foreach:{data:longhu.data,as:'items'}">
					<li data-bind="css:$parent.wid">
						<div class="t-head"><b data-bind="text:$root.setPosName(items.N)"></b><label data-bind="text:items.N"></label></div>
						<div class="t-box" data-bind="foreach:{data:items.list,as:'v'}">
							<div class="t-item" data-bind="click:$root.getFastItem,clickBubble:true,css:$parents[1].pre">
								<div class="t-name" data-bind="css:(/[^\'\']/.test(N)?'':'dn'">
									<span data-bind="text:v['N'],css:!$index()?'txt-red':($index()===Number(items.list.length-1))?'txt-blue':'txt-white',attr:{'style':($root.selectType())?'':'display:block;','oid':items.list.length}"></span>
									<span class="t-odds" data-bind="text:$root.status()?v['odd']():'封盘',css:(($root.selectType())?'':'w100 db')+($root.status()?'':' odds-close-text')"></span>
								</div>
								<div class="t-input tc" data-bind="css:$root.selectType()?(/[^\'\']/.test(N)?'':'dn'):'dn'">
									<input type="text" autocomplete="off" data-bind="enable:$root.status,textInput:amount">
								</div>
							</div>
						</div>
					</li>
				</ul>
			</div>
			<!--/ko-->
			<div class="toradora_btn w100">
				<input type="text" class="amount" data-bind="enable:$root.status,css:$root.selectType()?'dn':'',textInput:$root.fastAmount" maxlength="9">
				<input type="submit" class="btn btn-green" value="" title="确认">
				<input type="reset" class="btn" value="" title="取消" data-bind="click:$root.reset.bind($data,$root)">
			</div>
		</form>
	</script>

	<script type="text/html" id="tpl_tb">
		<form data-bind="submit: $root.buildOrders.bind($data,$root), selectAmount:$root.quickAmountArr">
			<div class="clear ui-ball-tb-box ui-ball-span-box" data-bind="foreach:[0,1,2,3,4]">
				<div class="clear">
					<span class="border_001">号码</span>
					<span class="border_002">赔率</span>
					<span class="border_003">金额</span><i></i>
				</div>
			</div>
			<div class="ui-tb-con-box w100 clear_fix">
				<!--ko if:list().length>0-->
				<ul class="clear" data-bind="foreach:{data:list()[0],as:'item'},css:$root.selectType()?'':'fast_slct'">
					<li>
						<div class="ui-tit-tr-box" data-bind="attr:{'oid':item.title},text:item.title"></div>
						<div class="fl w100" data-bind="foreach:{data:item.list,as:'index'}">
							<div class="ui-ttr-box">
								<div class="bd clear fl" data-bind="click:$root.getFastItem">
									<span class="ball tc" data-bind="style:{width:$root.selectType()?'':'47%'}">
										<span class="w100 db tb-style" data-bind="css:index.showImg?'dn':'',text:index.N,attr:{'title':index.kname+'：'+index.N}"></span>
										<label class="db w100" data-bind="css:index.showImg?'':'dn',attr:{'title':index.kname+'：'+index.N}">
											<img data-bind="attr:{src:/[1-6]/.test((index.N.split(''))[0])?iispath+'static/images/sezi/'+ (index.N.split(''))[0] +'.png':''}" width="19" height="19" />
											<img data-bind="css:index.oneBit?'dn':'',attr:{src:/[1-6]/.test((index.N.split(''))[1])?iispath + 'static/images/sezi/'+ (index.N.split(''))[1] +'.png':''}" width="19" height="19" />
										</label>
									</span>
									<span class="odds" data-bind="text:$root.status()?index['odd']():'封盘',css:/[^\'\']/.test(N) ? ($root.isFP(odd()) ? 'odds-close-text' : ($root.selectType() ? '' : 'w49')) : 'dn'"></span>
									<span class="amount_pane" data-bind="css:$root.selectType()?(/[^\'\']/.test(index.N)?'':'dn'):'dn',">
										<input type="text" class="amount" autocomplete="off" maxlength="9" data-bind="textInput:index.amount;,enable:$root.status" />
									</span>
								</div>
							</div>
						</div>
					</li>
				</ul>
				<!--/ko-->
			</div>
			<div class="btn-wrap">
				<input type="text" class="amount" data-bind="enable:$root.status,css:$root.selectType()?'dn':'',textInput:$root.fastAmount" maxlength="9">
				<input type="submit" class="btn btn-green" value="" title="确认">
				<input type="reset" class="btn" value="" title="取消" data-bind="click:$root.reset.bind($data,$root)">
			</div>
		</form>
	</script>

	<script type="text/html" id="qhzZhTemp">
		<div>
			<!--ko  foreach:$data-->
			<div class="zm16_nav nav-tab fl" data-oid="1" data-bind="text: title,css:$index()==0?'active':'',attr:{'data-oid':$index()},click:$root.qzhClick">前三</div>
			<!--/ko-->
		</div>
		<div id="qzhList">
			<!--ko  foreach:$data-->
			<div data-bind="attr:{'vid':$index},visible: $index() == 0">
				<ul data-bind="css:$root.selectType()?'':'fast_slct'">
					<!--ko foreach: list-->
					<li>
						<div class="clear ui-ball-span-box">
							<div class="clear">
								<span class="border_001" data-bind="css:$root.selectType()?'':'w49'">号码</span>
								<span class="border_002" data-bind="css:$root.selectType()?'':'w49'">赔率</span>
								<span class="border_003" data-bind="css:$root.selectType()?'':'dn'">金额</span><i></i>
							</div>
						</div>
						<div>
							<div>
								<div class="bd clear" data-bind="click:$root.getFastItem">
									<span class="ball" data-bind="text:N,css:(/^\d|\d\d[^-]$/.test(N))?'ball_com ball_'+N:(/[^\'\']/.test(N)?'':'dn'),style:{width:$root.selectType()?'':'50%'},attr:{'title':$data.kname+'：'+N}"></span>
									<span class="odds" data-bind="text:$root.status()?odd():'封盘',css:/[^\'\']/.test(N) ? ($root.isFP(odd()) ? 'odds-close-text' : ($root.selectType() ? '' : 'w49')) : 'dn'"></span>
									<span class="amount_pane" data-bind="css:$root.selectType()?(/[^\'\']/.test(N)?'':'dn'):'dn'">
										<input type="text" class="amount" maxlength="9" data-bind="enable:$root.status,textInput:amount" />
									</span>
								</div>
							</div>
						</div>
					</li>
					<!--/ko-->
				</ul>
			</div>
			<!--/ko-->
		</div>
		<div style="clear:both;"></div>
	</script>

	<script type="text/html" id="qhzTemp">
		<div data-bind="foreach:{data:$data,as:'item'}">
			<div>
				<div class="ui-tit-tr-box fl w100" data-bind="html:item.title,attr:{'oid':item.title}"></div>
				<div>
					<ul data-bind="foreach:list,attr:{'oid':list.length},css:$root.selectType()?'':'fast_slct'">
						<li>
							<div class="clear ui-ball-span-box">
								<div class="clear">
									<span class="border_001" data-bind="css:$root.selectType()?'':'w49'">号码</span>
									<span class="border_002" data-bind="css:$root.selectType()?'':'w49'">赔率</span>
									<span class="border_003" data-bind="css:$root.selectType()?'':'dn'">金额</span><i></i>
								</div>
							</div>
							<div>
								<div>
									<div class="bd clear" data-bind="click:$root.getFastItem">
										<span class="ball" data-bind="text:N,css:(/^\d|\d\d[^-]$/.test(N))?'ball_com ball_'+N:(/[^\'\']/.test(N)?'':'dn'),style:{width:$root.selectType()?'':'50%'},attr:{'title':$data.kname+'：'+N}"></span>
										<span class="odds" data-bind="text:$root.status()?odd():'封盘',css:/[^\'\']/.test(N) ? ($root.isFP(odd()) ? 'odds-close-text' : ($root.selectType() ? '' : 'w49')) : 'dn'"></span>
										<span class="amount_pane" data-bind="css:$parents[4].selectType()?(/[^\'\']/.test(N)?'':'dn'):'dn'">
											<input type="text" class="amount" maxlength="9" data-bind="enable:$root.status,textInput:amount" />
										</span>
									</div>
								</div>
							</div>
						</li>
					</ul>
				</div>
			</div>
		</div>
		<div style="clear:both;"></div>
	</script>

	<script type="text/html" id="hozTemp">
		<div data-bind="foreach:$data">
			<div class="zm16_nav" data-bind="text:'冠，亚军和'"></div>
			<ul data-bind="foreach:list,attr:{'oid':list.length},css:$root.selectType()?'':'fast_slct'">
				<li class="w225px">
					<div class="clear ui-ball-span-box">
						<div class="clear">
							<span class="border_001" data-bind="css:$root.selectType()?'':'w49'">号码</span>
							<span class="border_002" data-bind="css:$root.selectType()?'':'w49'">赔率</span>
							<span class="border_003" data-bind="css:$root.selectType()?'':'dn'">金额</span><i></i>
						</div>
					</div>
					<div>
						<div>
							<div class="bd clear" data-bind="click:$root.getFastItem">
								<span class="ball" data-bind="text:N,css:(/^\d|\d\d[^-]$/.test(N))?'ball_com ball_'+N:(/[^\'\']/.test(N)?'':'dn'),style:{width:$root.selectType()?'':'50%'},attr:{'title':$data.kname+'：'+N}"></span>
								<span class="odds" data-bind="text:$root.status()?odd():'封盘',css:/[^\'\']/.test(N) ? ($root.isFP(odd()) ? 'odds-close-text' : ($root.selectType() ? '' : 'w49')) : 'dn'"></span>
								<span class="amount_pane" data-bind="css:$root.selectType()?(/[^\'\']/.test(N)?'':'dn'):'dn'"><input type="text" class="amount" maxlength="9" data-bind="enable:$root.status,textInput:amount" /></span>
							</div>
						</div>
					</div>
				</li>
			</ul>
		</div>
	</script>

	<script type="text/html" id="filterPanel">
		<div class="clear gxks-con" data-bind="css:$root.selectType()?'':'dn'">
			<div class="fl ui-kkk-btn" style="width:80%;">
				<!--ko foreach:[
						{label:"波色：", data:[{'oid':'b1',name:'红'},{'oid':'b2',name:'蓝'},{'oid':'b0',name:'绿'}]},
						{label:"两面：", data:[
												{'oid':'l1',name:'单'},{'oid':'l0',name:'双'},{'oid':'n0',name:'大'},
												{'oid':'n1',name:'小'},{'oid':'l3',name:'合单'},{'oid':'l2',name:'合双'}
											]
						},
						{label:"头尾：", data:[
												{'oid':'t0',name:'0头'},{'oid':'t1',name:'1头'},{'oid':'t2',name:'2头'},
												{'oid':'v0',name:'0尾'},{'oid':'v1',name:'1尾'},{'oid':'v2',name:'2尾'},
												{'oid':'v3',name:'3尾'},{'oid':'v4',name:'4尾'},{'oid':'v5',name:'5尾'},
												{'oid':'v6',name:'6尾'},{'oid':'v7',name:'7尾'},{'oid':'v8',name:'8尾'},{'oid':'v9',name:'9尾'}
											]
						}
					]-->
				<div>
					<label data-bind="text:label"></label>
					<label data-bind="foreach:data">
						<a href="javasript:;" data-bind="text:name, attr:{'data-oid':oid}, click:$root.filterButton.bind($data,$root)"></a>
					</label>
				</div>
				<!--/ko-->
			</div>
			<div class="fr" style="width:20%;">
				<label class="tc tt">金额</label>
				<label class="tc">
					<input type="text" class="amount" data-bind="textInput:$root.forwardAmount,enable:$root.status" maxlength="9">
				</label>
				<label class="tc">
					<a href="javascript:;" class="btn btn-transfer" data-bind="click:$root.forwardSubmit.bind($data,$root)"></a>
					<a href="javascript:;" class="btn" data-bind="click:$root.reset.bind($data,$root)"></a>
				</label>
			</div>
		</div>
		<div class="s1_nav clear_fix">
			<ul class="clear" data-bind="foreach:{data:$data,as:'item'},css:$root.selectType()?'':'fast_slct'">
				<li class="w150 w150px">
					<div class="zm16_nav" data-bind="css:item.title===''?'dn':'',text:item.title"></div>
					<div class="clear ui-ball-span-box">
						<div>
							<span class="border_001" data-bind="css:$root.selectType()?'':'w49'">号码</span>
							<span class="border_002" data-bind="css:$root.selectType()?'':'w49'">赔率</span>
							<span class="border_003" data-bind="css:$root.selectType()?'':'dn'">金额</span><i></i>
						</div>
					</div>
					<div data-bind="foreach:{data:item.list,as:'u'}">
						<div class="bd clear" data-bind="click:$root.getFastItem">
							<span class="ball" data-bind="text:u.N,css:(/^[0-9]+$/.test(u.N))?'ball_com ball_'+u.N:(/[^\'\']/.test(u.N)?'':'dn'),style:{width:$root.selectType()?'':'50%'},attr:{'title':(/:+/.test(u.kname))?u.kname:u.kname+'：'+u.N}"></span>
							<span class="odds" data-bind="text:$root.status()?odd():'封盘',css:/[^\'\']/.test(N) ? ($root.isFP(odd()) ? 'odds-close-text' : ($root.selectType() ? '' : 'w49')) : 'dn'"></span>
							<span class="amount_pane" data-bind="css:$root.selectType()?(/[^\'\']/.test(u.N)?'':'dn'):'dn'">
								<input type="text" class="amount" data-bind="enable:$root.status,textInput:u.amount" maxlength="9" />
							</span>
						</div>
					</div>
				</li>
			</ul>
		</div>
		<div style="clear:both;"></div>
	</script>

	<script type="text/html" id="pcddTemp">
		<form data-bind="submit: $root.buildOrders.bind($data,$root), selectAmount:$root.quickAmountArr">
			<div class="main_txt bet-wrap w900">
				<div class="txt_section clear_fix">
					<div class="s1_nav clear_fix">
						<!--ko if:list().length>0-->
						<ul class="clear" data-bind="foreach:{data:list()[0],as:'item'},css:$root.selectType()?'':'fast_slct'">
							<li data-bind="css:$parent.template.comW">
								<div class="zm16_nav" data-bind="css:item.title==''?'dn':'',text:item.title"></div>
								<div class="clear ui-ball-span-box">
									<div class="clear">
										<span class="border_001" data-bind="css:$parents[1].selectType()?'':'w49'">号码</span>
										<span class="border_002" data-bind="css:$parents[1].selectType()?'':'w49'">赔率</span>
										<span class="border_003" data-bind="css:$parents[1].selectType()?'':'dn'">金额</span><i></i>
									</div>
								</div>
								<div data-bind="foreach:{data:item.list,as:'index'}">
									<div class="bd clear" data-bind="click:$root.getFastItem">
										<span class="ball" data-bind="html:N, css:(/^[0-9]+$/.test(N))?'ball_com ball_'+N:(/[^\'\']/.test(N)?'':'dn'),style:{width:$root.selectType()?'':'50%'},attr:{'title':(/:+/.test($data.kname))?$data.kname:$data.kname+'：'+N}"></span>
										<span class="odds" data-bind="text:$root.status()?index['odd']():'封盘', css:/[^\'\']/.test(N) ? ($root.isFP(odd()) ? 'odds-close-text' : ($root.selectType() ? '' : 'w49')) : 'dn'"></span>
										<span class="amount_pane" data-bind="css:$root.selectType()?(/[^\'\']/.test(N)?'':'dn'):'dn'">
											<input type="text" class="amount" data-bind="textinput:amount, enable:$root.status, attr:{'oid':$root.status}" maxlength="9" />
										</span>
									</div>
								</div>
							</li>
						</ul>
						<!--/ko-->
					</div>
				</div>
				<div class="bd txt_section5">
					<!--ko if:list().length>2-->
					<!--ko foreach:list()[2] -->
					<div class="dist-table">
						<div style="float:left;" data-bind="click:$root.getFastItem">
							<span class="ball_m" style="color:white" data-bind="css:title==''?'dn':'',text:title"></span>
							<span class="odds" data-bind="text:$root.status()?odd():'封盘', css:/[^\'\']/.test(N) ? ($root.isFP(odd()) ? 'odds-close-text' : '') : 'dn'"></span>
						</div>
						<div class="dist-select">
							<div class="gameSelect">
								<span class="ball" data-bind="text:selectedNum0,css:'ball_'+selectedNum0()">12</span>
								
								<select data-bind="value: selectedID0, enable:$root.status, foreach: numbers">
									<option data-bind="text: N, attr: { disabled: !!optionDisable(), value: I }">text</option>
								</select>
							</div>
							<div class="gameSelect">
								<span class="ball" data-bind="text:selectedNum1,css:'ball_'+selectedNum1()">12</span>
								

								<select data-bind="value: selectedID1, enable:$root.status, foreach: numbers">
									<option data-bind="text: N, attr: { disabled: !!optionDisable(), value: I }">text</option>
								</select>
							</div>
							<div class="gameSelect">
								<span class="ball" data-bind="text:selectedNum2,css:'ball_'+selectedNum2()">12</span>
								

								<select data-bind="value: selectedID2, enable:$root.status, foreach: numbers">
									<option data-bind="text: N, attr: { disabled: !!optionDisable(), value: I }">text</option>
								</select>
							</div>
							<span class="amount_pane" data-bind="css:$root.selectType()?(/[^\'\']/.test(N)?'':'dn'):'dn'">
								<input type="text" class="int-text"  data-bind="textinput:amount, enable:$root.status, attr:{'oid':$root.status}" maxlength="9" />
							</span>
						</div>
					</div>
					<!--/ko-->
					<!--/ko-->
					<div class="btn_ok">
						<div class="clear">
							<input type="text" class="amount" data-bind="enable:$root.status,css:$root.selectType()?'dn':'',value:$root.fastAmount,textInput:$root.fastAmount" maxlength="9">
							<span>
								<input type="submit" class="btn btn-green" value="" title="确定" />
								<input type="button" class="btn" data-bind="click:$root.reset.bind($data,$root)" value="" title="取消" />
								<input type="reset" style="display:none;" />
							</span>
						</div>
					</div>
				</div>

				<div class="txt_section clear_fix">
					<div class="s1_nav clear_fix">
						<!--ko if:list().length>1-->
						<ul class="clear" data-bind="foreach:{data:list()[1],as:'item'},css:$root.selectType()?'':'fast_slct'">
							<li data-bind="css:$parent.template.comW">
								<div class="zm16_nav" data-bind="css:item.title==''?'dn':'',text:item.title"></div>
								<div class="clear ui-ball-span-box">
									<div class="clear">
										<span class="border_001" data-bind="css:$parents[1].selectType()?'':'w49'">号码</span>
										<span class="border_002" data-bind="css:$parents[1].selectType()?'':'w49'">赔率</span>
										<span class="border_003" data-bind="css:$parents[1].selectType()?'':'dn'">金额</span><i></i>
									</div>
								</div>
								<div data-bind="foreach:{data:item.list,as:'index'}">
									<div class="bd clear" data-bind="click:$root.getFastItem">
										<span class="ball" data-bind="html:N, css:(/^[0-9]+$/.test(N))?'ball_com ball_'+N:(/[^\'\']/.test(N)?'':'dn'),style:{width:$root.selectType()?'':'50%'},attr:{'title':(/:+/.test($data.kname))?$data.kname:$data.kname+'：'+N}"></span>
										<span class="odds" data-bind="text:$root.status()? index['odd']() :'封盘', css:/[^\'\']/.test(N) ? ($root.isFP(odd()) ? 'odds-close-text' : ($root.selectType() ? '' : 'w49')) : 'dn'"></span>
										<span class="amount_pane" data-bind="css:$root.selectType()?(/[^\'\']/.test(N)?'':'dn'):'dn'">
											<input type="text" class="amount" data-bind="textinput:amount, enable:$root.status, attr:{'oid':$root.status}" maxlength="9" />
										</span>
									</div>
								</div>
							</li>
						</ul>
						<!--/ko-->
					</div>
				</div>
			</div>
		</form>
	</script>
	<div id="tpl_num_one" class="ui-quick-num-mod-box" style="display:none;">
		<ul data-bind="foreach:quickAmountArr">
			<li data-bind="click:$root.numClick"><a href="javascript:;" data-bind="click:$root.numClick,html:$data">100元</a></li>
		</ul>
	</div>

	<script type="text/html" id="tpl_bet">
		<div class="betorder-box">
			<div class="bb-list">
				<table>
					<thead>
						<tr>
							<th>内容</th>
							<th>赔率</th>
							<th>下注金额</th>
						</tr>
					</thead>
					<tbody data-bind="foreach:betList">
						<tr>
							<td data-bind="html:kname+'：'+N"></td>
							<td data-bind="text:odd">3.6</td>
							<td data-bind="text:amount()"></td>
						</tr>
					</tbody>
				</table>
			</div>
			<div class="foot-total">共 <b class="redtext" data-bind="text:betList.length">1</b> 注，合计下注金额 <b class="redtext" data-bind="text:totalAmount">200</b><label for="ck-odds-latest" style="float:right"><input type="checkbox" id="ck-odds-latest" data-bind="checked:force" /> 按最新赔率提交</label></div>
		</div>
	</script>

{template index/lottery_view_footer_credit}